package com.lyf.design.practice.theory.structure.proxy.staticproxy.v1;

/**
 * @author LYF
 * @date 2022/6/22
 */
public class RecordTimeActionProxy extends ActionProxy{
    public RecordTimeActionProxy(Actionable actionable) {
        super(actionable);
    }

    @Override
    public Actionable getActionable() {
        return super.getActionable();
    }

    @Override
    public void setActionable(Actionable actionable) {
        super.setActionable(actionable);
    }

    @Override
    public void talk() {
        long cur = System.currentTimeMillis();
        super.talk();
        System.out.println("consume:"+(System.currentTimeMillis()-cur));
    }

    @Override
    public void run() {
        super.run();
    }

    @Override
    public void eat() {
        super.eat();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return super.toString();
    }

    @Override
    protected void finalize() throws Throwable {
        super.finalize();
    }
}
